//
//  BRate.swift
//  BMort_SwiftUI
//
//  Created by anscen on 2022/9/2.
//

import UIKit
import HandyJSON
public enum BRepayState :String{
    case rate         = "等额本息"
    case capital      = "等额本金"
}
struct BRate: HandyJSON,Hashable {
    var lilv :String? = nil
    var txt  :String? = nil
    var type :Int     = 0
    var year1:Int     = 0
    var year2:Int?    = 0
}
struct BMyModel :Hashable{
    var title :String
    var icon  :String
}

struct BMortgage :HandyJSON,Hashable{
    var identy   :String = ""
    var gjjmoney :String? = nil
    var gjjrate  :String? = nil
    
    var symoney  :String? = nil
    var syrate   :String? = nil
    var discount :String? = nil
    var discountrate :String? = nil
    
    var month    :String?     = nil
    var repay    :BRepayState = .rate
}
struct BMoreModel :Hashable{
    var title     :String
    var subTitle  :String
}
